﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class Content
    {
        #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion //Variable Declaration

        public Content(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void CreateContent()
        {
            _dataObject.CreateContent(this);
        }
        public void UpdateContent()
        {
            _dataObject.UpdateContent(this);
        }
        public void DeleteContent()
        {
            _dataObject.DeleteContent(this);
        }
        public void getContentByPageName()
        {
            _dataObject.getContentByPageName(this);
        }
        public void getContentById()
        {
            _dataObject.getContentById(this);
        }
        public List<Content> getAllContents()
        {
            return _dataObject.getAllContents();
        }
    }
}
